package com.approval.dto;

import lombok.Data;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 权限更新请求DTO
 */
@Data
public class PermissionUpdateRequest {
    
    @Size(max = 100, message = "权限名称长度不能超过100个字符")
    private String permissionName;
    
    @Size(max = 500, message = "权限描述长度不能超过500个字符")
    private String description;
    
    private String permissionType;
    
    @Size(max = 100, message = "资源标识长度不能超过100个字符")
    private String resource;
    
    @Size(max = 50, message = "操作标识长度不能超过50个字符")
    private String action;
    
    private Long parentId;
    
    @Size(max = 200, message = "菜单路径长度不能超过200个字符")
    private String path;
    
    @Size(max = 200, message = "组件路径长度不能超过200个字符")
    private String component;
    
    @Size(max = 100, message = "图标长度不能超过100个字符")
    private String icon;
    
    private Integer sortOrder;
    
    private Integer status;
    
    // 权限编码
    private String permissionCode;
}
